@extends('frontend::layout')

@section('title', '查看评测信息')

@section('content')
    <div class="card">
        <div class="card-body">
            <div class="row">
                <div class="clearfix"></div>
                <div class="col-md-12 col-sm-12 col-xs-12 pull-right">
                    <p>
                        <a href="javascript:history.back(-1);" class="btn btn-primary btn-sm">{{ __('Back') }}</a>
                    </p>
                </div>
            </div>
            <h4 class="text-black f-20">查看评测信息</h4>
            <div class="table-responsive">
                <table class="table table-striped table-hover">
                    <tbody>
                    <tr>
                        <th scope="row">{{ __("学生姓名") }}</th>
                        <td>{{ $training->child->name }}</td>
                    </tr>
                    <tr>
                        <th scope="row">干预训练项目</th>
                        <td>{{ $training->game->name }}</td>
                    </tr>
                    <tr>
                        <th scope="row">设备类型</th>
                        <td>{{ $training->device->kind->name }}</td>
                    </tr>
                    <tr>
                        <th scope="row">干预训练开始时间</th>
                        <td>{{ $training->start_time }}</td>
                    </tr>
                    <tr>
                        <th scope="row">干预训练结束时间</th>
                        <td>{{ $training->end_time }}</td>
                    </tr>
                    <tr>
                        <th scope="row">项目用时</th>
                        <td>{{ $training->use_time }}</td>
                    </tr>
                    <tr>
                        <th scope="row">项目开始级别</th>
                        <td>{{ $training->start_star. '星' }}</td>
                    </tr>
                    <tr>
                        <th scope="row">项目结束级别</th>
                        <td>{{ $training->end_star. '星' }}</td>
                    </tr>
                    <tr>
                        <th scope="row">干预训练是否成功</th>
                        <td>{{ $training->result == 1 ? "成功" : "失败" }}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
@stop
